load("//tools:defaults.bzl", "ts_project")
load("//tools/adev-api-extraction:extract_api_to_json.bzl", "extract_api_to_json")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "selenium-webdriver",
    srcs = glob(
        ["**/*.ts"],
        exclude = ["**/*.spec.ts"],
    ),
    deps = [
        "//:node_modules/@types/selenium-webdriver",
        "//:node_modules/selenium-webdriver",
        "//src/cdk/testing",
    ],
)

filegroup(
    name = "source-files",
    srcs = glob(
        ["**/*.ts"],
        exclude = ["**/*.spec.ts"],
    ),
)

extract_api_to_json(
    name = "json_api",
    srcs = [
        ":source-files",
    ],
    entry_point = ":index.ts",
    module_name = "@angular/cdk/testing/selenium-webdriver",
    output_name = "cdk_testing_selenium_webdriver.json",
    private_modules = [""],
    repo = "angular/components",
)
